import Mock from 'mockjs'
import user from './user'
import ai from './ai'

// 设置模拟数据延迟时间
Mock.setup({
  timeout: '300-600'
})

// 注释掉所有模拟接口，以便与后端进行真实联调
/*
// 挂载模拟接口
Mock.mock(/\/api\/user\/login/, 'post', user.login)
Mock.mock(/\/api\/user\/info/, 'get', user.getInfo)
Mock.mock(/\/api\/user\/logout/, 'post', user.logout)

// 注册AI相关接口
Mock.mock(/\/api\/ai\/chat/, 'post', ai['post|/api/ai/chat'])
Mock.mock(/\/api\/ai\/models/, 'get', ai['get|/api/ai/models'])
Mock.mock(/\/api\/ai\/quota/, 'get', ai['get|/api/ai/quota'])
Mock.mock(/\/api\/ai\/upload/, 'post', ai['post|/api/ai/upload'])
Mock.mock(/\/api\/ai\/conversation\/save/, 'post', ai['post|/api/ai/conversation/save'])
Mock.mock(/\/api\/ai\/conversation\/list/, 'get', ai['get|/api/ai/conversation/list'])
Mock.mock(/\/api\/ai\/conversation\/\d+/, 'get', ai['get|/api/ai/conversation/\\d+'])
*/

export default Mock